﻿<cfsilent>
	<cfscript>
		
		event.setArg("pageTitle", "教学运行 - 教学场地调度 - 教室借用向导");
		
		docId = event.getArg("DOCID");
		
		/* 读取预约信息 */
		sql = "SELECT 
				tch_approve, use_time, use_rooms, 
				t_teacher.tch_id, t_teacher.tch_name, 
				t_institute.institute_name, 
				t_clsroom_usetype.ut_id, t_clsroom_usetype.usage
				FROM t_clsroom_borrow 
				INNER JOIN t_teacher ON t_teacher.tch_id = t_clsroom_borrow.tch_id 
				INNER JOIN t_institute ON t_institute.institute_id = t_clsroom_borrow.institute_id 
				INNER JOIN t_clsroom_usetype ON t_clsroom_usetype.ut_id = t_clsroom_borrow.ut_id 
				WHERE cbr_id = :docId ";

		queryObj = new Query( datasource=application.dnsSlave );
		queryObj.addParam( name="docId", value=docId, cfsqltype="cf_sql_char" );

		rs_doc = queryObj.execute( sql=sql ).getResult();
		
		passArgs = structNew();
		structInsert( passArgs, "DOCID", docId );

	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('DEFAULT_EVENT')#</cfoutput>"><i class="mrs img btnList"></i><span class="uiButtonText">教学场地调度</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 info"></i>打印回执
				</h2>
			</div>
		</div>
	</div>
</div>

<!--- 加载导航菜单 --->
<!-- stepMenu-->
<cfoutput>#event.getArg("stepMenu")#</cfoutput>
<!--/stepMenu-->

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="summary">

				<div class="noticeBlock">
					<div class="operation">
						<a class="uiButton" target="_blank" href="<cfoutput>#buildURL('classRoomBorrowPrintReceipt', passArgs)#</cfoutput>"><i class="mrs img btnPrint"></i><span class="uiButtonText">打印调度单</span></a>
					</div>
					<h3>教室调度单</h3>
					<p>
						<span class="img icon16x16 message"></span>
						该教室借用申请已处理完毕. 请打印回执单, 并转交申请人.
					</p>
					<hr/>
				</div>
				
				<div class="UIDashBoard">
						
					<div class="col2">
						
						<div class="noticeBlock">
							
							<p>用于<cfoutput>#rs_doc.usage#</cfoutput></p>
							<ol>
								<li>责任单位: <cfoutput>#rs_doc.institute_name#</cfoutput></li>
								<li>负责人: <cfoutput>#rs_doc.tch_name#</cfoutput>(<cfoutput>#rs_doc.tch_id#</cfoutput>)</li>
								<li><cfoutput>#rs_doc.use_time#</cfoutput>，<cfoutput>#rs_doc.use_rooms#</cfoutput></li>
								<li>审批人: <cfoutput>#rs_doc.tch_approve#</cfoutput></li>
							</ol>
							
						</div>
						
					</div>
					
					<div class="col2 last">
						
						<div class="noticeBlock">
							<p>回执单号</p>
							<p>
								<span class="img icon16x16 message"></span>
								该回执单号仅用于核查教室借用申请及用途信息
							</p>
							<br/>
							<p><img src="<cfoutput>#getContextRoot()#</cfoutput>/barcode/Progress/JSDD-<cfoutput>#rs_doc.ut_id#</cfoutput>-<cfoutput>#docId#</cfoutput>.png" /></p>
							
						</div>
						
					</div>
					
				</div>

			</div>
		</li>
	</ul>
</div>
